package OOPHomework.OOPHomework;

public class OOPHomeworkTest02 {
    public static void main(String[] args) {
        //根据女朋友类创建一个实体类对象
        Girlfriend girlfriend=new Girlfriend();
        //根据对象调用属性
        girlfriend.name="凤姐";
        girlfriend.height=155.0;
        girlfriend.weight=130.0;
        //根据对象调用方法
        girlfriend.show();
        girlfriend.wash();
        girlfriend.cook();
    }
}
